#ifndef _I2C_H_
#define _I2C_H_

#include "stm32f10x.h"



uint8_t I2C_ReadData(I2C_TypeDef* I2Cx,uint8_t addr, uint8_t reg);
uint8_t I2C_ReadDatas(I2C_TypeDef* I2Cx,uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t num);

void I2C1_Init(void);

#endif
